#include <iostream>

using namespace std;

class MyClass
{
void defaultRight(){}

int _default;

public:
    //class function member
    void publicFunc()
    {
        cout << "public = " << _public << endl;
        /* cout << "protected = " << _protected << endl; */
        /* cout << "private = " << _private << endl; */
    }

    //class data member
    int _public;

protected:
    void protectedFunc()
    {
        cout << _protected << endl;
    }

    int _protected;

private:
    void privateFunc();

    int _private;
};

//seperate declare and definition
void MyClass::privateFunc()
{
    cout << "private = " << _private << endl;
}

void test()
{
    MyClass c;
    c._public = 10;
    c.publicFunc();
}

int main()
{
    test();
    return 0;
}

